Page({
  data: {
    edit: {
      name: '',
      job: '', // 职务
      count: 0
    }
  },
  change(event) {
    const {currentTarget: {dataset: {type}}} = event
    let edit = JSON.parse(JSON.stringify(this.data.edit))
    edit[type] = event.detail.value
    this.setData({
      edit
    })
  },
  selectDate(event) {
    let edit = JSON.parse(JSON.stringify(this.data.edit))
    edit.date = event.detail.value
    this.setData({
      edit
    })
  },
  onLoad(options) {
  },
  onReady() {
  },
  onShow() {
  },
  onHide() {
  },
  onUnload() {
  },
  onShareAppMessage() {
    return {
      title: '',
    };
  },
});